/**
 * Created by thl on 2019/3/8.
 */
//预加载
$('#app_no_header').scroll(function(){

    var scrollTop = $('#app_no_header').scrollTop(); //滚动条滚动高度

    var documentH = $('.product_bg').height();  //滚动条高度

    var windowH = $('#app_no_header').height(); //窗口高度

    var pageSize =50;
    if (scrollTop +windowH>= documentH - windowH&&loads) {
        if(ends){
            if (indexCount % 50 === 0) {//每50条做一次停顿！
                loadInlays(indexCount,pageSize);

            }else{
                loadInlays(indexCount,pageSize)

            }
            return;
        }

    }

});